package com.example.literaturesystem.service.user.impl;

import com.example.literaturesystem.dao.user.IUserDao;
import com.example.literaturesystem.domain.base.BaseModel;
import com.example.literaturesystem.domain.user.User;
import com.example.literaturesystem.service.user.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userService")
public class UserServiceImpl implements IUserService {

    @Autowired
    private IUserDao userDao;

    @Override
    public List<User> query(BaseModel baseModel) {
        return this.userDao.query(baseModel);
    }

    @Override
    public int update(BaseModel baseModel) {
        return this.userDao.update(baseModel);
    }

    @Override
    public int insert(BaseModel baseModel) {
        return this.userDao.insert(baseModel);
    }
}
